package com.alibaba.otter.node.etl.load.loader.mq.rabbit.provider;

import com.alibaba.otter.node.etl.load.loader.mq.rabbit.model.MessageType;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public class DefaultContentTypeProvider implements ContentTypeProvider {

    private MessageType type;

    @Override
    public Object provide(Object message) {
        return type.getContentType();
    }
}
